package com.itheima.map;


import java.util.HashMap;
import java.util.List;
import java.util.Set;

public class LamabdaDeo {
    public static void main(String[] args) {

        HashMap<String,String> hm=new HashMap<String, String>();
       //  List.of("1","2"); //1.9jdk
        hm.put("111","111");
        hm.put("222","qqq");
        hm.put("333","www");
        hm.put("444","eee");
        Set<String> strings = hm.keySet();
        strings.stream().filter(s->s=="111").forEach(s -> System.out.println(s+" "+hm.get(s)));
      //  strings.stream().forEach(s-> System.out.println(s+" "+hm.get(s)));
        long count = strings.stream().count();
        System.out.println(count);


    }
}
